import {
    SET_FOOTER_SHOW
} from '../mutation-types';



const state = {
    show: true
}

const mutations = {
    [SET_FOOTER_SHOW](state) {
        state.show = !state.show
    }
}

const actions = {
    CHANGE_FOOTER_SHOW: ({ commit, dispatch }) => {
        commit(SET_FOOTER_SHOW)
        /*
        Q: 为什么还需要 dispatch ?
        A: 还可以 dispatch 其他 action
        */
    }
}

export default {
    state,
    actions,
    mutations
}
